package com.sumainfor.pc.epc.controller.housekeeper;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.service.HoHousingPlanService;
import com.sumainfor.pc.epc.service.HoHpiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.Map;

@RestController
@RequestMapping("/tenant/key/housekeeper/HoHousingPlan")
public class HoWxHousingPlanController implements Serializable{

    @Autowired
    private HoHousingPlanService hoHousingPlanService;
    @Autowired
    private HoHpiService hoHpiService;
    /**
     *租客端协助开门查询房源的房间配置
     */
    @PostMapping("/getHoInteHouConInfoList")
    public JsonResult getHoInteHouConInfoList(@RequestBody Map<String,Object>params) {
        return hoHousingPlanService.getHoInteHouConInfoList(params);
    }
    /**
     *租客端 充值智能设备查询智能设备的设备编号
     */
    @GetMapping("/getHoRdInteDeviceConList")
    public JsonResult getHoRdInteDeviceConList(@RequestParam Map<String, Object> params) {
        return hoHpiService.getHoRdInteDeviceConList(params);
    }

}
